﻿using Application.AppService.IConfig;
using Domain;
using Domain.Entity.Config;
using Domain.Repository.IConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.Config
{
    public class ERAppService : IEngage_resumeAppService
    {
        private readonly IEngage_resumeRepository erRepository;

        public ERAppService(IEngage_resumeRepository erRepository)
        {
            this.erRepository = erRepository;
        }
        public Task<bool> AddERAsync(Engage_resume er)
        {
            return erRepository.AddERAsync(er);
        }

        //等一下写
        public ERFenYE DateERAsync(string Human_major_kind_id, string Human_major_id, string gzc, DateTime startDate, DateTime endDate, int page, int pageSize, int zt)
        {
            return erRepository.DateERAsync(Human_major_kind_id, Human_major_id, gzc, startDate, endDate, page, pageSize, zt);
        }

        public ERFenYE DateERSAsync(int page, int pageSize, int zt)
        {
           return erRepository.DateERSAsync(page, pageSize, zt);
        }

        public ERFenYE DateERSSAsync(string Human_major_kind_id, string Human_major_id, string gzc, DateTime startDate, DateTime endDate, int page, int pageSize, int zt, int zt1)
        {
            return erRepository.DateERSSAsync(Human_major_kind_id, Human_major_id, gzc, startDate, endDate, page, pageSize, zt,zt1);
        }

        public Task<bool> DeleteERAsync(int Id)
        {
            return erRepository.DeleteERAsync(Id);
        }

        public Task<Engage_resume> GetERByNameAsync(int Id)
        {
            return erRepository.GetERByNameAsync(Id);
        }

        public Task<bool> UpdateERApplicationAsync(Engage_resume er)
        {
            return erRepository.UpdateERApplicationAsync(er);
        }

        public Task<bool> UpdateERApprovalAsync(Engage_resume er)
        {
            return erRepository.UpdateERApprovalAsync(er);
        }

        public Task<bool> UpdateERAsync(Engage_resume er)
        {
            return erRepository.UpdateERAsync(er);
        }

        public Task<bool> UpdateERSAsync(Engage_resume er)
        {
            return erRepository.UpdateERSAsync(er);
        }
    }
}
